import request from '@/utils/request'

// 查询毕业离校设置列表
export function listGradsettings(query) {
  return request({
    url: '/departure/gradsettings/list',
    method: 'get',
    params: query
  })
}

// 查询毕业离校设置详细
export function getGradsettings(dgsId) {
  return request({
    url: '/departure/gradsettings/' + dgsId,
    method: 'get'
  })
}

// 新增毕业离校设置
export function addGradsettings(data) {
  return request({
    url: '/departure/gradsettings',
    method: 'post',
    data: data
  })
}

// 修改毕业离校设置
export function updateGradsettings(data) {
  return request({
    url: '/departure/gradsettings',
    method: 'put',
    data: data
  })
}

// 删除毕业离校设置
export function delGradsettings(dgsId) {
  return request({
    url: '/departure/gradsettings/' + dgsId,
    method: 'delete'
  })
}
// 获取毕业年份下拉树
export function getGradYearSelector() {
  return request({
    url: '/departure/gradsettings/getGradYearSelector',
    method: 'get'
  })
}
// 获取饭卡结算时间
export function settlementTime() {
  return request({
    url: '/departure/gradsettings/settlementTime',
    method: 'get'
  })
}
//获取离校操作时间
export function getSettlementTime(data) {
  return request({
    url: '/departure/gradsettings/settlementTime/' + data,
    method: 'get'
  })
}
//获取离校饭卡等结算时间

export function cancelTime(data) {
  return request({
    url: '/departure/gradsettings/cancelTime/' + data,
    method: 'get'
  })
}
// 根据毕业范围查询毕业人数
export function getScopeNumber(data) {
  return request({
    url: '/departure/gradsettings/getScopeNumber/' + data,
    method: 'get'
  })
}
